package com.imooc;

import com.imooc.controller.WelcomeController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotatedBeanDefinitionReader;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 *  {@link AnnotatedBeanDefinitionReader}
 * @author : dzj
 * @create: 2021-10-16 19:36
 */
@Slf4j
@Configuration
@ComponentScan("com.imooc")
public class Debug0611_annotation {

	public static void main(String[] args) {

		ApplicationContext ctx = new AnnotationConfigApplicationContext(Debug0611_annotation.class);
		WelcomeController welcomeController = ctx.getBean(WelcomeController.class);
		welcomeController.handleRequest();
	}
}
